package com.wise.summer.v1.cms.content.category;

import com.wise.entities.content.ProductCategory;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001000250006;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Getter
@Setter
@Publish
@ApiInfo("添加分类")
public class AddCategory extends BasicSummer<ProductCategory> {

	@ApiInfo("分类名")
	@NotBlank(msg = Err_001000250006)
	private String categoryName;

	@ApiInfo("是否在菜单显示")
	private boolean showStatus;

	@ApiInfo("排序")
	private Integer sort;

	@ApiInfo("别名")
	private String alias;
	@ApiInfo("产品类别资源文件路径")
	private String path;
	@ApiInfo("产品类别资源文件名称")
	private String fileName;
	/**
	 * 0 Product菜单
	 * 1 行业
	 */
	@ApiInfo("分类类型")
	private Integer categoryType;
}
